-ifndef(D).
-define(D(X), io:format("DEBUG ~p:~p ~p~n",[?MODULE, ?LINE, X])).
-endif.
-define(ERML_REGEXP,"<erml([a-z]|[0-9])+").
-define(VAR_REGEXP,"(%[a-z0-9-_]+%)").
-define(VAR_SHORT_REGEXP,"([a-z0-9-_]+)").
-define(OPERANDS,[{lt,'<'},{lte,'=<'},{gt,'>'},{gte,'=>'},{nul,'*'}]).



-record(erml, {
	socket        = [],
	method        = [],
	absolute_uri  = [],
	request_uri   = [],
	http_version  = [],
	request_line  = [],
	parsed_header = [],
	entity_body   = [],
	remove_addr   = [],
	var           = [],
	response      = [],
	filename      = []
	}).


-record(ermlloop, {
	index     = [],
	from      = [],
	to        = [],
	step      = 1,
	list      = [],
	condition = []
	}).

-record(ermlif, {
	conditions = [],
	else       = []
	}).